unit CaixaFr;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ComCtrls, Menus, Buttons, ExtCtrls, DBGrids, StdCtrls, DBCtrls, MainFr,
  DataRecord;

type

  { TCaixaMainFrame }

  TCaixaMainFrame = class(TMainFrame)
    DBGrid2: TDBGrid;
    DBGrid3: TDBGrid;
    DBText1: TDBText;
    DBText2: TDBText;
    GroupBox1: TGroupBox;
    GroupBox2: TGroupBox;
    Label1: TLabel;
    Label2: TLabel;
    MenuItemAlteraSenha: TMenuItem;
    MenuItemCadastro: TMenuItem;
    MenuItemCidade: TMenuItem;
    MenuItemFinalSessao: TMenuItem;
    MenuItemGrupo: TMenuItem;
    MenuItemPessoa: TMenuItem;
    MenuItemRamo: TMenuItem;
    MenuItemSair: TMenuItem;
    MenuItemUnidade: TMenuItem;
    Panel1: TPanel;
    PanelData: TPanel;
    PanelTotal: TPanel;
    Panel4: TPanel;
    Panel5: TPanel;
    ToolBar1: TToolBar;
    ToolBar2: TToolBar;
    ToolButton1: TToolButton;
    ToolButton10: TToolButton;
    ToolButton11: TToolButton;
    ToolButton12: TToolButton;
    ToolButton13: TToolButton;
    ToolButton2: TToolButton;
    ToolButton3: TToolButton;
    ToolButton4: TToolButton;
    ToolButton5: TToolButton;
    ToolButton6: TToolButton;
    ToolButton7: TToolButton;
    ToolButton8: TToolButton;
    ToolButton9: TToolButton;
    procedure SetDataRecord(Data: TDataRecord); override;
  private
    { private declarations }
  public
    { public declarations }
  end;

implementation

uses
  UsuarioDM;

{ TCaixaMainFrame }

procedure TCaixaMainFrame.SetDataRecord(Data: TDataRecord);
begin
  // Verifica se o frame possui módulo de dados
  if (MainDataModule <> nil) then
    // Atribui um DataRecord ao DataSet
    MainDataModule.SetDataRecord(Data);
end;

initialization

  {$I caixafr.lrs}

end.

